package com.dtstack.hive.controller;

import com.dtstack.hive.facade.UserFacade;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * UserController
 *
 * <p>
 * </p>
 *
 * @author chuanbai
 * @date 2024/8/4
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserFacade userFacade;

    @GetMapping("/query")
    public String queryDataFromHive(){
        userFacade.queryDataFromHive();
        return "ok";
    }
}
